<template>
  <div class="shqueryitem_container">
    <school-temp :school_inf="school_inf" :school_name="school_name"></school-temp>
    <tab-bar></tab-bar>
  </div>
</template>

<script>
import {request} from '../../../../network/axios'
import SchoolTemp from '../../../../common/schooltemp/SchoolTemp'
import TabBar from '../../../common/tabbar/TabBar.vue'
export default {
  name:'shqueryitem',
  data(){
    return{
      school_name:'',
      school_inf:{}
    }
  },
  methods:{
    
  },
  components:{
    SchoolTemp,
    TabBar
  },
  created(){
    this.school_name=this.$route.query.name 
    this.$request({
      url:'/sch/home',
      params:{
        name: this.school_name
      }
    })
    .then(res => {
      this.school_inf = res.data[0]
      console.log(res); 
    })
    .catch(err => {
      console.log(err);
    })
  }
}
</script>

<style>

</style>